package freecomm.study.processbartest;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.ProgressBar;

public class ProcessBarTest extends Activity {
    /** Called when the activity is first created. */
    private ProgressBar pbBar;
    private Button plusBtn;
    private Button minusBtn;
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        pbBar = (ProgressBar)findViewById(R.id.progressBar1);
        plusBtn = (Button)findViewById(R.id.button1);
        minusBtn = (Button)findViewById(R.id.button2);
        plusBtn.setOnClickListener(new OnClickListener()
        {
            
            @Override
            public void onClick(View v)
            {
                // TODO Auto-generated method stub
                pbBar.incrementProgressBy(1);
            }
        });
        minusBtn.setOnClickListener(new OnClickListener()
        {
            
            @Override
            public void onClick(View v)
            {
                // TODO Auto-generated method stub
                pbBar.incrementProgressBy(-1);
            }
        });
    
    
    
    }
}